function Track(trackInd) {
	this.id = trackInd;
	var mData = [];
	this.addNext = function (station) {
		station.setVisitedBy(trackInd);
		mData[mData.length] = station;
	};
	
	this.clone = function(trackInd) {
		var track = new Track(trackInd);
		for (var i = 0; i < mData.length; i++) {
			track.addNext(mData[i]);
		}
		return track;
	};
	
	this.getNodesNumber = function () {
		return mData.length;
	};
	
	this.getNode = function (nodeInd) {
		return mData[nodeInd];
	};
	
	this.getLastNode = function () {
		return mData[mData.length - 1];
	};
}